import { Dialog } from 'tdesign-react';
import React from 'react';

interface ConfirmModalProps {
  visible: boolean;
  title: string;
  content: string;
  onConfirm: () => void;
  onCancel: () => void;
}

const ConfirmModal: React.FC<ConfirmModalProps> = ({ visible, title, content, onConfirm, onCancel }) => (
  <Dialog visible={visible} header={title} onCancel={onCancel} onConfirm={onConfirm} theme='warning' closeBtn={false}>
    <p>{content}</p>
  </Dialog>
);
export default ConfirmModal;
